/**
 * 青云门修真攻略 - 数据配置文件
 * 包含门派技能、攻略、装备等基础数据
 */

// 门派基础配置
const sectConfig = {
    sectName: "青云门", // 门派名称
    sectColor: "#4a90e2", // 主题色彩
    currentVersion: "3.2.1", // 当前版本
    lastUpdate: "2024-01-15" // 最后更新时间
};

// 技能数据配置
const skillsData = {
    primary: [ // 主修功法
        {
            id: "skill_001",
            name: "太极玄清道",
            type: "主动技能",
            description: "青云门核心功法，凝聚真气，对敌人造成大量法术伤害，并有概率触发额外伤害。",
            level: "满级",
            damage: 1200,
            cooldown: 8,
            manaCost: 120,
            range: "远程"
        },
        {
            id: "skill_002", 
            name: "神剑雷真诀",
            type: "主动技能",
            description: "召唤神剑，释放雷电之力，对目标及周围敌人造成范围伤害。",
            level: "满级",
            damage: 800,
            cooldown: 12,
            manaCost: 150,
            range: "范围"
        }
    ],
    thunder: [ // 雷法神通
        {
            id: "skill_003",
            name: "五雷正法",
            type: "范围技能", 
            description: "召唤五道雷电，对指定区域内所有敌人造成雷属性伤害。",
            level: "满级",
            damage: 950,
            cooldown: 15,
            manaCost: 180,
            range: "大范围"
        },
        {
            id: "skill_004",
            name: "雷动九天",
            type: "控制技能",
            description: "释放雷电之网，麻痹目标，造成持续伤害并降低移动速度。",
            level: "满级", 
            damage: 400,
            cooldown: 20,
            manaCost: 200,
            range: "中等范围"
        }
    ],
    sword: [ // 剑法技艺
        {
            id: "skill_005",
            name: "斩鬼神",
            type: "单体技能",
            description: "凝聚剑意，对单一目标造成极高伤害，忽略部分防御。",
            level: "满级",
            damage: 1500,
            cooldown: 25,
            manaCost: 250,
            range: "远程"
        },
        {
            id: "skill_006",
            name: "万剑诀",
            type: "群体技能", 
            description: "召唤无数飞剑，对前方扇形区域内敌人造成连续伤害。",
            level: "满级",
            damage: 300,
            cooldown: 18,
            manaCost: 160,
            range: "扇形范围"
        }
    ],
    support: [ // 辅助心法
        {
            id: "skill_007",
            name: "护体真气",
            type: "防御技能",
            description: "运转真气护体，提升防御力并减少受到的伤害。",
            level: "满级",
            damage: 0,
            cooldown: 30,
            manaCost: 100,
            range: "自身"
        },
        {
            id: "skill_008",
            name: "御剑飞行",
            type: "位移技能",
            description: "御剑快速移动，瞬间位移到指定位置，可用于追击或逃脱。",
            level: "满级",
            damage: 0,
            cooldown: 10,
            manaCost: 80,
            range: "位移"
        }
    ]
};

// PVE攻略数据
const pveData = {
    dungeons: [ // 秘境副本
        {
            id: "dungeon_001",
            name: "焚香谷秘境",
            difficulty: "困难",
            level: "90-95级",
            rewards: "高级装备、修为丹",
            strategy: "这个副本主要考验输出能力和走位技巧。BOSS有三个阶段，需要注意技能循环和血量控制。",
            tips: [
                "第一阶段保持距离，避免近战攻击",
                "第二阶段注意躲避地面火焰",
                "第三阶段集中火力快速击杀"
            ],
            tags: ["团队副本", "高输出", "走位"]
        },
        {
            id: "dungeon_002", 
            name: "天音寺试炼",
            difficulty: "中等",
            level: "80-85级",
            rewards: "技能书、金币",
            strategy: "主要测试技能连招和法力管理。建议携带回蓝道具，保持法力充足。",
            tips: [
                "合理分配法力，避免断蓝",
                "优先击杀小怪，再对付BOSS",
                "利用地形优势保持安全距离"
            ],
            tags: ["单人副本", "技能测试", "法力管理"]
        }
    ],
    bosses: [ // BOSS攻略
        {
            id: "boss_001",
            name: "鬼王宗宗主",
            difficulty: "极难",
            level: "100级",
            hp: "500万",
            strategy: "这是游戏中最难的BOSS之一，需要完美的技能循环和团队配合。",
            phases: [
                {
                    phase: 1,
                    description: "血量100%-70%，主要使用远程攻击",
                    tactics: "保持距离，稳定输出，注意躲避技能"
                },
                {
                    phase: 2, 
                    description: "血量70%-30%，会召唤小怪",
                    tactics: "优先清理小怪，防止被围攻"
                },
                {
                    phase: 3,
                    description: "血量30%-0%，进入狂暴状态",
                    tactics: "全力输出，使用爆发技能快速击杀"
                }
            ]
        }
    ],
    leveling: [ // 练级指南
        {
            level: "1-30级",
            location: "青云山下",
            monsters: "野兔、山鸡",
            experience: "300-500/只",
            tips: "新手练级区，怪物较弱，适合熟悉技能"
        },
        {
            level: "30-60级", 
            location: "死泽沼地",
            monsters: "沼泽蛙、毒蛇",
            experience: "800-1200/只", 
            tips: "注意毒属性攻击，建议组队练级"
        },
        {
            level: "60-90级",
            location: "蛮荒古地",
            monsters: "远古魔兽",
            experience: "2000-3000/只",
            tips: "怪物较强，建议满技能再来，收益很高"
        }
    ]
};

// PVP对战策略数据
const pvpData = {
    strategies: [ // 对战策略
        {
            id: "strategy_001",
            title: "对战鬼王宗",
            opponent: "鬼王宗",
            winRate: "65%",
            difficulty: "中等",
            content: "鬼王宗近战能力强，我们要利用远程优势，保持距离进行风筝战术。",
            tips: [
                "开局使用御剑飞行拉开距离",
                "优先使用太极玄清道消耗血量", 
                "关键时刻使用护体真气减伤",
                "避免被贴身，一旦被近身立即位移"
            ]
        },
        {
            id: "strategy_002",
            title: "对战天音寺", 
            opponent: "天音寺",
            winRate: "45%",
            difficulty: "困难",
            content: "天音寺治疗能力强，要快速爆发击杀，不能拖延战斗。",
            tips: [
                "开局直接使用斩鬼神爆发",
                "连续施放雷法打断治疗",
                "利用万剑诀压制走位",
                "法力不足时及时后撤补给"
            ]
        },
        {
            id: "strategy_003",
            title: "对战合欢派",
            opponent: "合欢派", 
            winRate: "75%",
            difficulty: "简单",
            content: "合欢派控制技能多，但伤害较低，我们可以稳扎稳打。",
            tips: [
                "使用护体真气抵抗控制",
                "保持中距离稳定输出",
                "注意魅惑技能的释放时机",
                "利用雷动九天反控制"
            ]
        }
    ]
};

// 装备推荐数据
const equipmentData = {
    weapons: [ // 神兵利器
        {
            id: "weapon_001",
            name: "诛仙古剑",
            type: "法器",
            rarity: "legendary",
            stats: {
                attack: 2500,
                critRate: 25,
                critDamage: 150,
                spellPower: 300
            },
            source: "鬼王宗副本掉落",
            description: "传说中的诛仙古剑，蕴含强大的剑意，大幅提升法术攻击力。"
        },
        {
            id: "weapon_002",
            name: "青云仙剑",
            type: "法器", 
            rarity: "epic",
            stats: {
                attack: 2000,
                critRate: 20,
                critDamage: 120,
                spellPower: 250
            },
            source: "门派任务奖励",
            description: "青云门传承仙剑，门派弟子必备武器，攻击力不俗。"
        }
    ],
    armor: [ // 护体法宝
        {
            id: "armor_001",
            name: "太极护体袍",
            type: "法袍",
            rarity: "epic",
            stats: {
                defense: 1500,
                magicDefense: 1800,
                hp: 8000,
                mana: 3000
            },
            source: "炼器制作",
            description: "蕴含太极之力的法袍，显著提升生存能力。"
        }
    ],
    accessories: [ // 配饰宝物
        {
            id: "accessory_001",
            name: "混元戒指",
            type: "戒指",
            rarity: "legendary", 
            stats: {
                spellPower: 200,
                manaRegen: 50,
                cooldownReduction: 15
            },
            source: "世界BOSS掉落",
            description: "传说中的混元戒指，大幅提升法术能力和技能冷却。"
        }
    ]
};